package com.free.mini.core.server.api;

import com.free.mini.core.server.config.CoreServerFeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.free.mini.common.base.ResultData;
import com.free.mini.core.server.vo.req.UserQueryTokenReqVO;
import com.free.mini.core.server.vo.resp.UserQueryTokenRespVO;

/**
 * @author dongsufeng
 * @version 4.0
 * @date 2023/8/12 10:20
 */
@FeignClient(name = "userControllerApi",url = "${feign.core.server.url:http://101.43.170.244:8083}", configuration = CoreServerFeignConfiguration.class)
public interface UserControllerApi {

    @PostMapping("study/v1/user/query/token")
    ResultData<UserQueryTokenRespVO> getToken(@RequestBody @Validated UserQueryTokenReqVO reqVO);
}
